package com.karl.timeflightmode;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class TimeFlightModeActivity extends Activity {
    /** Called when the activity is first created. */
	
	 Button btn;
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        //get data
        Intent intent = getIntent();
        String time = intent.getStringExtra("startTime");
        
        TextView textView = (TextView) findViewById(R.id.tview);
        
        textView.setText(time);
        
        //
        btn = (Button) findViewById(R.id.btn);        
        btn.setTextColor(Color.WHITE);
        btn.setOnClickListener(new Button.OnClickListener(){

			public void onClick(View arg0) {
				Intent intent = new Intent();				
				intent.setClass(TimeFlightModeActivity.this, FlightModeForm.class);
				startActivity(intent);
				TimeFlightModeActivity.this.finish();
			}        	
        });
    }
}